Skip to content

fix: correct MinerU deployment and add PDF provider test#3

Merged
wyuc merged 3 commits intomainfrom
fix/mineru-deploy
Mar 13, 2026
Merged

fix: correct MinerU deployment and add PDF provider test#3
wyuc merged 3 commits intomainfrom
fix/mineru-deploy

Conversation

@cosarah
Copy link
Copy Markdown
Collaborator

@cosarah cosarah commented Mar 13, 2026

Summary

  • Remove bundled MinerU Docker service/Dockerfile from docker-compose.yml — link to official API and self-host docs in README instead
  • Fix MinerU requiresApiKey to false (self-hosted MinerU doesn't require API key)
  • Add "Test Connection" button to PDF settings panel, backed by a new /api/verify-pdf-provider route (avoids CORS issues)
  • Set Vercel API body size limit to 50MB for document uploads

Test plan

  • Verify MinerU section in README/README-zh links correctly to official docs
  • Confirm docker compose up --build works without MinerU service
  • Test PDF settings panel shows Base URL + optional API Key for MinerU
  • Test connection button works against a running MinerU instance
  • Verify PDF parsing works without API key set

🤖 Generated with Claude Code

cosarah and others added 3 commits March 13, 2026 19:06
- Remove bundled MinerU Docker service and Dockerfile; link to official API and self-host docs instead
- Set MinerU requiresApiKey to false (self-hosted doesn't need it)
- Add test connection button to PDF settings panel with backend proxy to avoid CORS
- Add verify-pdf-provider API route for server-side connection testing
- Set Vercel API body size limit to 50MB for document uploads

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wyuc wyuc merged commit 24a51e0 into main Mar 13, 2026
1 check passed
YizukiAme referenced this pull request in YizukiAme/OpenMAIC Mar 17, 2026
- engine.ts: AI wb_clear now saves snapshot before clearing (audit #3)
- page.tsx: clear whiteboard history on classroom switch (audit #4)
cosarah referenced this pull request in YizukiAme/OpenMAIC Mar 18, 2026
- engine.ts: AI wb_clear now saves snapshot before clearing (audit #3)
- page.tsx: clear whiteboard history on classroom switch (audit #4)
cosarah pushed a commit that referenced this pull request Mar 18, 2026
* feat: add whiteboard history and auto-save (closes #32)

- New whiteboard-history.tsx: browseable history panel UI
- New whiteboard-history.ts: Zustand store with snapshot stack,
  fingerprint-based deduplication, and restoredKey one-shot guard
- New element-fingerprint.ts: shared fingerprint utility (id+position+size)
- whiteboard-canvas.tsx: auto-snapshot effect that saves the current stable
  state after 2s debounce; unified fingerprint import; useMemo for elements
- index.tsx: pushSnapshot before UI clear; history panel trigger button
- stage.ts: i18n keys for history UI (zh/en)

* fix: address audit findings for whiteboard history

- engine.ts: AI wb_clear now saves snapshot before clearing (audit #3)
- page.tsx: clear whiteboard history on classroom switch (audit #4)

* fix: address review round 2 (P1/P2a/P2b/P3)

- P1: Block restore during clear animation (race condition)
- P2a: Skip no-op restores to avoid stale restoredKey
- P2b: clearHistory() now also resets restoredKey
- P3: Dedicated restoreError i18n key

* fix: fingerprint includes semantic content per element type (P2c)

* fix: address reviewer feedback (fingerprint cache, AI clear label, exhaustive check)
jaumemir pushed a commit to jaumemir/OpenMAIC that referenced this pull request Apr 8, 2026
fix: correct MinerU deployment and add PDF provider test
jaumemir pushed a commit to jaumemir/OpenMAIC that referenced this pull request Apr 8, 2026
* feat: add whiteboard history and auto-save (closes THU-MAIC#32)

- New whiteboard-history.tsx: browseable history panel UI
- New whiteboard-history.ts: Zustand store with snapshot stack,
  fingerprint-based deduplication, and restoredKey one-shot guard
- New element-fingerprint.ts: shared fingerprint utility (id+position+size)
- whiteboard-canvas.tsx: auto-snapshot effect that saves the current stable
  state after 2s debounce; unified fingerprint import; useMemo for elements
- index.tsx: pushSnapshot before UI clear; history panel trigger button
- stage.ts: i18n keys for history UI (zh/en)

* fix: address audit findings for whiteboard history

- engine.ts: AI wb_clear now saves snapshot before clearing (audit THU-MAIC#3)
- page.tsx: clear whiteboard history on classroom switch (audit THU-MAIC#4)

* fix: address review round 2 (P1/P2a/P2b/P3)

- P1: Block restore during clear animation (race condition)
- P2a: Skip no-op restores to avoid stale restoredKey
- P2b: clearHistory() now also resets restoredKey
- P3: Dedicated restoreError i18n key

* fix: fingerprint includes semantic content per element type (P2c)

* fix: address reviewer feedback (fingerprint cache, AI clear label, exhaustive check)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants